(window._sp_wp_jsonp=window._sp_wp_jsonp||[]).push([[4,3],{180:function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return P}));r(22),r(27),r(54),r(28),r(29),r(71),r(141),r(102),r(101),r(51),r(49),r(50),r(30),r(31),r(32),r(187),r(188),r(33),r(69),r(52),r(34),r(53),r(55),r(68),r(35),r(72);var n=r(0),o=r(14),i=r(59),u=r(193),a=r(200),c=r(197),s=null,f=r(146);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0)for(var r=t.getMaxVendorId(),n=function(r){var n=r.toString();t.getRestrictions(r).forEach((function(t){var r=t.purposeId.toString();e[r]||(e[r]={}),e[r][n]=t.restrictionType}))},o=1;o<=r;o++)n(o);return e}},{key:"createVectorField",value:function(t,e){return e?e.reduce((function(e,r){return e[String(r)]=t.has(Number(r)),e}),{}):q(t).reduce((function(t,e){return t[e[0].toString(10)]=e[1],t}),{})}}])&&X(e.prototype,r),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(x);function at(t){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(t){return function(t){if(Array.isArray(t))return st(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return st(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){var r=t.getMaxVendorId();t.getRestrictions().forEach((function(t){e[t.purposeId.toString()]="_".repeat(r)}));for(var n=function(r){var n=r+1;t.getRestrictions(n).forEach((function(t){var n=t.restrictionType.toString(),o=t.purposeId.toString(),i=e[o].substr(0,r),u=e[o].substr(r+1);e[o]=i+n+u}))},o=0;o2&&void 0!==arguments[2]?arguments[2]:"";return Pe(this,a),(r=u.call(this,"invalid value ".concat(e," passed for ").concat(t," ").concat(n))).name="TCModelError",r}return n=a,o&&Se(n.prototype,o),i&&Se(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(_e(Error));function Ae(t){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=2&&2==r.length){if(t.langSet.has(e))return e;if(t.langSet.has(r))return r;var n=r+"-"+r;if(t.langSet.has(n))return n;var o,i=Ue(t.langSet);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(-1!==u.indexOf(e)||-1!==u.indexOf(r))return u}}catch(t){i.e(t)}finally{i.f()}}throw new Error("unsupported language ".concat(e))}},{key:"forEach",value:function(e){t.langSet.forEach(e)}},{key:"size",get:function(){return t.langSet.size}}])&&Fe(e.prototype,r),n&&Fe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function We(t){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ye(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(this.restrictionType===nr.NOT_ALLOWED||this.restrictionType===nr.REQUIRE_CONSENT||this.restrictionType===nr.REQUIRE_LI)}},{key:"isSameAs",value:function(t){return this.purposeId===t.purposeId&&this.restrictionType===t.restrictionType}}])&&ur(e.prototype,r),n&&ur(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(or);pr(br,"hashSeparator","-");r(71),r(73),r(74),r(191);function vr(t){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dr(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return mr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:Array.from(this.gvl.vendorIds),r=t.hash;if(this.has(r)){var n,o=this.map.get(r),i=dr(e);try{for(i.s();!(n=i.n()).done;){var u=n.value;o.add(u)}}catch(t){i.e(t)}finally{i.f()}}else this.map.set(r,new Set(e)),this.bitLength=0}},{key:"getVendors",value:function(t){var e=[];if(t){var r=t.hash;this.has(r)&&(e=Array.from(this.map.get(r)))}else{var n=new Set;this.map.forEach((function(t){Array.from(t).forEach((function(t){n.add(t)}))})),e=Array.from(n)}return e.sort((function(t,e){return t-e}))}},{key:"getRestrictionType",value:function(t,e){var r;return this.getRestrictions(t).forEach((function(t){t.purposeId===e&&(void 0===r||r>t.restrictionType)&&(r=t.restrictionType)})),r}},{key:"vendorHasRestriction",value:function(t,e){for(var r=!1,n=this.getRestrictions(t),o=0;o=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Mr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t,e){for(var r=0;r0}},{key:"isSet",value:function(t){var e=!1;return t instanceof Set&&(e=Array.from(t).every(this.isValidNumber)),e}},{key:"set",value:function(t){var e=this;if(Array.isArray(t))t.forEach((function(t){return e.set(t)}));else if(this.isSet(t))this.set(Array.from(t));else if(this.isIntMap(t))this.set(Object.keys(t).map((function(t){return Number(t)})));else{if(!this.isValidNumber(t))throw new Le("set()",t,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(t),this.maxId_=Math.max(this.maxId,t),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(t){for(var e=1;e<=this.maxId;e++)t(this.has(e),e)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(t){this.set(t)}}])&&Fr(e.prototype,r),n&&Fr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(or);function bn(t){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(t,e){for(var r=0;re||t<0)throw new fe("".concat(t," too large to encode into ").concat(e));return r.length25||n<0||n>25)throw new fe("invalid language code: ".concat(t));if(e%2==1)throw new fe("numBits must be even, ".concat(e," is not valid"));return e/=2,Cn.encode(r,e)+Cn.encode(n,e)}},{key:"decode",value:function(t,e){if(e!==t.length||t.length%2)throw new te("invalid bit length for language");var r=t.length/2,n=Cn.decode(t.slice(0,r),r)+65,o=Cn.decode(t.slice(r),r)+65;return String.fromCharCode(n)+String.fromCharCode(o)}}],(r=null)&&xn(e.prototype,r),n&&xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Fn(t){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bn(t,e){for(var r=0;r1};t.getRestrictions().forEach((function(r){e+=Cn.encode(r.purposeId,gn.purposeId),e+=Cn.encode(r.restrictionType,gn.restrictionType);for(var o=t.getVendors(r),i=o.length,u=0,a=0,c="",s=0;sc&&s0&&this[2].push(Ir.VENDORS_ALLOWED),this[2].push(Ir.PUBLISHER_TC))}}));function fo(t){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lo(t,e){for(var r=0;r").concat(r,": ").concat(t.message))}})),De.encode(o)}},{key:"decode",value:function(t,e,r){var n=this,o=De.decode(t),i=0;r===Ir.CORE&&(e.version=Cn.decode(o.substr(i,gn[$e.version]),gn[$e.version])),r!==Ir.CORE&&(i+=gn.segmentType);var u=this.fieldSequence[String(e.version)][r],a=$n();return u.forEach((function(t){var r=a[t],u=gn[t];if(void 0===u&&n.isPublisherCustom(t)&&(u=Number(e[$e.numCustomPurposes])),0!==u){var c=o.substr(i,u);if(e[t]=r===zn?r.decode(c,e.version):r.decode(c,u),Number.isInteger(u))i+=u;else{if(!Number.isInteger(e[t].bitLength))throw new te(t);i+=e[t].bitLength}}})),e}},{key:"isPublisherCustom",value:function(t){return 0===t.indexOf("publisherCustom")}}],(r=null)&&lo(e.prototype,r),n&&lo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function bo(t){return(bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vo(t,e){for(var r=0;r0&&(null==e?void 0:e.version)<=this.processor.length?t.version=e.version:t.version=this.processor.length;var n=t.version-1;if(!this.processor[n])throw new fe("Invalid version: ".concat(t.version));return this.processor[n](t,r)}}],(r=null)&&vo(e.prototype,r),n&&vo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();!function(t,e,r){(e=mo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(ho,"processor",[function(t){return t},function(t,e){t.publisherRestrictions.gvl=e,t.purposeLegitimateInterests.unset([1,3,4,5,6]);var r=new Map;return r.set("legIntPurposes",t.vendorLegitimateInterests),r.set("purposes",t.vendorConsents),r.forEach((function(r,n){r.forEach((function(o,i){if(o){var u=e.vendors[i];if(!u||u.deletedDate)r.unset(i);else if(0===u[n].length)if("legIntPurposes"===n&&0===u.purposes.length&&0===u.legIntPurposes.length&&u.specialPurposes.length>0);else if(t.isServiceSpecific)if(0===u.flexiblePurposes.length)r.unset(i);else{for(var a=t.publisherRestrictions.getRestrictions(i),c=!1,s=0,f=a.length;s=200&&u.status<300){var t=u.response;if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}o(t)}else i(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){i(new Error("error"))})),u.addEventListener("abort",(function(){i(new Error("aborted"))})),null===e?u.open("GET",t,!0):u.open("POST",t,!0),u.responseType="json",u.timeout=n,u.ontimeout=function(){i(new Error("Timeout "+n+"ms "+t))},u.send(e)}))}},{key:"post",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(t,JSON.stringify(e),r,n)}},{key:"fetch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(t,null,e,r)}}],(r=null)&&wo(e.prototype,r),n&&wo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function jo(t){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Po(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Po=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,u=Object.create(i.prototype),a=new T(n||[]);return o(u,"_invoke",{value:E(t,r,a)}),u}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="executing",b="completed",v={};function d(){}function m(){}function h(){}var g={};s(g,u,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(k([])));O&&O!==r&&n.call(O,u)&&(g=O);var S=h.prototype=d.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,u,a){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==jo(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,a)}),(function(t){r("throw",t,u,a)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=p;return function(i,u){if(o===y)throw Error("Generator is already running");if(o===b){if("throw"===i)throw u;return{value:t,done:!0}}for(n.method=i,n.arg=u;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?b:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=b,n.method="throw",n.arg=s.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var u=i.arg;return u?u.done?(r[e.resultName]=u.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Eo(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function _o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){Eo(i,n,o,u,a,"next",t)}function a(t){Eo(i,n,o,u,a,"throw",t)}u(void 0)}))}}function Co(t,e){for(var r=0;r0){var n=t;a.CACHE.has(n)?(e.populate(a.CACHE.get(n)),e.readyPromise=Promise.resolve()):(r+=a.versionedFilename.replace("[VERSION]",String(n)),e.readyPromise=e.fetchJson(r))}else a.CACHE.has(a.LATEST_CACHE_KEY)?(e.populate(a.CACHE.get(a.LATEST_CACHE_KEY)),e.readyPromise=Promise.resolve()):(e.isLatest=!0,e.readyPromise=e.fetchJson(r+a.latestFilename))}return e}return e=a,r=[{key:"cacheLanguage",value:function(){a.LANGUAGE_CACHE.has(this.cacheLang_)||a.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(i=_o(Po().mark((function t(e){return Po().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=this,t.next=4,So.fetch(e);case 4:t.t1=t.sent,t.t0.populate.call(t.t0,t.t1),t.next=11;break;case 8:throw t.prev=8,t.t2=t.catch(0),new we(t.t2.message);case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(t){return i.apply(this,arguments)})},{key:"getJson",value:function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"changeLanguage",value:(o=_o(Po().mark((function t(e){var r,n,o,i,u;return Po().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e,t.prev=1,r=a.consentLanguages.parseLanguage(e),t.next=8;break;case 5:throw t.prev=5,t.t0=t.catch(1),new we("Error during parsing the language: "+t.t0.message);case 8:if(n=e.toUpperCase(),r.toLowerCase()!==a.DEFAULT_LANGUAGE.toLowerCase()||a.LANGUAGE_CACHE.has(n)){t.next=11;break}return t.abrupt("return");case 11:if(r===this.lang_){t.next=29;break}if(this.lang_=r,!a.LANGUAGE_CACHE.has(n)){t.next=18;break}for(i in o=a.LANGUAGE_CACHE.get(n))o.hasOwnProperty(i)&&(this[i]=o[i]);t.next=29;break;case 18:return u=a.baseUrl+a.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),t.prev=19,t.next=22,this.fetchJson(u);case 22:this.cacheLang_=n,this.cacheLanguage(),t.next=29;break;case 26:throw t.prev=26,t.t1=t.catch(19),new we("unable to load language: "+t.t1.message);case 29:case"end":return t.stop()}}),t,this,[[1,5],[19,26]])}))),function(t){return o.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(t){return void 0!==t&&void 0!==t.vendors}},{key:"populate",value:function(t){this.purposes=t.purposes,this.specialPurposes=t.specialPurposes,this.features=t.features,this.specialFeatures=t.specialFeatures,this.stacks=t.stacks,this.dataCategories=t.dataCategories,this.isVendorList(t)&&(this.gvlSpecificationVersion=t.gvlSpecificationVersion,this.tcfPolicyVersion=t.tcfPolicyVersion,this.vendorListVersion=t.vendorListVersion,this.lastUpdated=t.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=t.vendors,this.fullVendorList=t.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&a.CACHE.set(a.LATEST_CACHE_KEY,this.getJson()),a.CACHE.has(this.vendorListVersion)||a.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(t){var e=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(t){e.byPurposeVendorMap[t]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(t){e.bySpecialPurposeVendorMap[t]=new Set})),Object.keys(this.features).forEach((function(t){e.byFeatureVendorMap[t]=new Set})),Object.keys(this.specialFeatures).forEach((function(t){e.bySpecialFeatureVendorMap[t]=new Set})),Array.isArray(t)||(t=Object.keys(this.fullVendorList).map((function(t){return+t}))),this.vendorIds=new Set(t),this.vendors_=t.reduce((function(t,r){var n=e.vendors_[String(r)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((function(t){e.byPurposeVendorMap[String(t)].consent.add(r)})),n.specialPurposes.forEach((function(t){e.bySpecialPurposeVendorMap[String(t)].add(r)})),n.legIntPurposes.forEach((function(t){e.byPurposeVendorMap[String(t)].legInt.add(r)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((function(t){e.byPurposeVendorMap[String(t)].flexible.add(r)})),n.features.forEach((function(t){e.byFeatureVendorMap[String(t)].add(r)})),n.specialFeatures.forEach((function(t){e.bySpecialFeatureVendorMap[String(t)].add(r)})),t[r]=n),t}),{})}},{key:"getFilteredVendors",value:function(t,e,r,n){var o=this,i=t.charAt(0).toUpperCase()+t.slice(1),u={};return("purpose"===t&&r?this["by"+i+"VendorMap"][String(e)][r]:this["by"+(n?"Special":"")+i+"VendorMap"][String(e)]).forEach((function(t){u[String(t)]=o.vendors[String(t)]})),u}},{key:"getVendorsWithConsentPurpose",value:function(t){return this.getFilteredVendors("purpose",t,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(t){return this.getFilteredVendors("purpose",t,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(t){return this.getFilteredVendors("purpose",t,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(t){return this.getFilteredVendors("purpose",t,void 0,!0)}},{key:"getVendorsWithFeature",value:function(t){return this.getFilteredVendors("feature",t)}},{key:"getVendorsWithSpecialFeature",value:function(t){return this.getFilteredVendors("feature",t,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(t){this.mapVendors(t)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var t=new a(this.getJson());return this.lang_!==a.DEFAULT_LANGUAGE&&t.changeLanguage(this.lang_),t}}],n=[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(t){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(t))throw new we("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");t.length>0&&"/"!==t[t.length-1]&&(t+="/"),this.baseUrl_=t}},{key:"emptyLanguageCache",value:function(t){var e=!1;return null==t&&a.LANGUAGE_CACHE.size>0?(a.LANGUAGE_CACHE=new Map,e=!0):"string"==typeof t&&this.consentLanguages.has(t.toUpperCase())&&(a.LANGUAGE_CACHE.delete(t.toUpperCase()),e=!0),e}},{key:"emptyCache",value:function(t){var e=!1;return Number.isInteger(t)&&t>=0?(a.CACHE.delete(t),e=!0):void 0===t&&(a.CACHE=new Map,e=!0),e}},{key:"isInstanceOf",value:function(t){return"object"===jo(t)&&"function"==typeof t.narrowVendorsTo}}],r&&Co(e.prototype,r),n&&Co(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(or);function Do(t){return(Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xo(t,e){for(var r=0;r1))throw new Le("cmpId",t);this.cmpId_=t}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(t){if(t=Number(t),!(Number.isInteger(t)&&t>-1))throw new Le("cmpVersion",t);this.cmpVersion_=t}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(t){if(t=Number(t),!(Number.isInteger(t)&&t>-1))throw new Le("consentScreen",t);this.consentScreen_=t}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(t){this.consentLanguage_=t}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(t){if(!/^([A-z]){2}$/.test(t))throw new Le("publisherCountryCode",t);this.publisherCountryCode_=t.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(t){if((t=Number(t)>>0)<0)throw new Le("vendorListVersion",t);this.vendorListVersion_=t}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(t){if(this.policyVersion_=parseInt(t,10),this.policyVersion_<0)throw new Le("policyVersion",t)}},{key:"version",get:function(){return this.version_},set:function(t){this.version_=parseInt(t,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(t){this.isServiceSpecific_=t}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(t){this.useNonStandardTexts_=t}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(t){this.supportOOB_=t}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(t){this.purposeOneTreatment_=t}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var t=this.numCustomPurposes_;if("object"===Do(this.customPurposes)){var e=Object.keys(this.customPurposes).sort((function(t,e){return Number(t)-Number(e)}));t=parseInt(e.pop(),10)}return t},set:function(t){if(this.numCustomPurposes_=parseInt(t,10),this.numCustomPurposes_<0)throw new Le("numCustomPurposes",t)}},{key:"updated",value:function(){var t=new Date,e=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));this.created=e,this.lastUpdated=e}}])&&xo(e.prototype,r),n&&xo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(or);function Wo(t){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yo(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r3?o-3:0),u=3;u2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;Ki(this,t),$i(this,"callResponder",void 0),$i(this,"isServiceSpecific",void 0),$i(this,"numUpdates",0),this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(r,"cmpVersion",0),L.cmpId=e,L.cmpVersion=r,L.tcfPolicyVersion=4,this.isServiceSpecific=!!n,this.callResponder=new Yi(o)}var e,r,n;return e=t,(r=[{key:"throwIfInvalidInt",value:function(t,e,r){if(!("number"==typeof t&&Number.isInteger(t)&&t>=r))throw new Error("Invalid ".concat(e,": ").concat(t))}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(L.disabled)throw new Error("CmpApi Disabled");L.cmpStatus=i.LOADED,e?(L.displayStatus=u.VISIBLE,L.eventStatus=a.CMP_UI_SHOWN):void 0===L.tcModel?(L.displayStatus=u.DISABLED,L.eventStatus=a.TC_LOADED):(L.displayStatus=u.HIDDEN,L.eventStatus=a.USER_ACTION_COMPLETE),L.gdprApplies=null!==t,L.gdprApplies?(""===t?(L.tcModel=new Jo,L.tcModel.cmpId=L.cmpId,L.tcModel.cmpVersion=L.cmpVersion):L.tcModel=Ko.decode(t),L.tcModel.isServiceSpecific=this.isServiceSpecific,L.tcfPolicyVersion=Number(L.tcModel.policyVersion),L.tcString=t):L.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():L.eventQueue.exec(),this.numUpdates++}},{key:"disable",value:function(){L.disabled=!0,L.cmpStatus=i.ERROR}}])&&qi(e.prototype,r),n&&qi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),tu=r(0),eu=r(200),ru=r(197),nu=r(21);function ou(t){return(ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function iu(t,e){for(var r=0;r0&&0!==r.messageId}},{key:"hasInlineMessage",value:function(){var t=this.campaignResponse.message;return!!this.hasMessage()&&t&&t.message_json&&t.message_json.settings&&t.message_json.settings.type&&"inline"===t.message_json.settings.type}},{key:"getPvData",value:function(){return{}}},{key:"sendPvData",value:function(){var t=this.config,e=t.accountId,r=t.env,o=t.wrapperAPIOrigin,i=t.mmsDomain,c=t.pubData,s=this.getPvData();!function(t,e,r,o,i,c,s,f){if(!Object(n.sampleUser)(s))return Promise.resolve();var l=a({},s,u(u({},f),{},{accountId:e,siteId:r,propertyId:r,pubData:c,withSiteActions:"true",sampleRate:Object(n.sampleRate)(s)}));Object(n.fetch)("".concat(o,"/v2/pv-data"),{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json"},params:{env:t}}).then(JSON.parse).then((function(t){return Promise.all(Object.keys(t).map((function(e){return Object(n.handleConsentData)(t[e],e,i)})))})).catch((function(t){return Promise.resolve()}))}(r,e,this.propertyId,o,i,c,this.category,s)}}])&&s(e.prototype,r),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},194:function(t,e,r){r(58)("asyncIterator")},195:function(t,e,r){"use strict";var n=r(1),o=r(57),i=[].reverse,u=[1,2];n({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},196:function(t,e,r){r(1)({target:"Number",stat:!0},{isInteger:r(203)})},197:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return c})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return f})),r.d(e,"f",(function(){return l})),r.d(e,"a",(function(){return p}));r(55),r(27),r(73),r(74),r(135),r(101),r(22),r(54),r(28),r(29),r(71),r(49),r(50),r(30),r(31),r(32),r(53),r(68),r(35),r(72),r(33);var n=r(0);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e,r){var n;return n=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=function(t){var e=Object(n.getUserConsentData)("gdpr","euconsentWithDisclosedVendors");try{t(e,!0)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"gdpr")}},c=function(t,e){var r=function(t){for(var e=1;e0&&(r.consentedVendors=r.consentedVendors.filter((function(e){return t.includes(e._id.toString())})));try{e(r,!0)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"gdpr")}},s=function(t,e,r){var o="".concat(t,"/vendor-list/vendor-purpose-mapping?siteId=").concat(e);Object(n.fetch)(o,{method:"GET"}).then((function(t){return JSON.parse(t)})).then((function(t){try{r(t,!0)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"gdpr")}})).catch((function(t){try{r(null,!1)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"gdpr")}Object(n.handleError)(t,"gdpr")}))},f=function(t,e,r,o,i,u,a){var c=Object(n.getUserConsentData)("gdpr","uuid"),s="".concat(t,"/consent/v3/custom/").concat(u);Object(n.fetch)(s,{method:"POST",params:{consentUUID:c},body:JSON.stringify({vendors:e,categories:r,legIntCategories:o}),headers:{"Content-Type":"application/json"}}).then((function(t){return JSON.parse(t)})).then((function(t){return Object(n.handleConsentData)(t,"gdpr",a).then((function(e){return t}))})).then((function(t){try{i(t,!0)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"gdpr")}})).catch((function(t){try{i(null,!1)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"gdpr")}Object(n.handleError)(t,"gdpr")}))},l=function(t,e,r,o,i){var u=Object(n.getUserConsentData)("gdpr","authId"),a=Object(n.getUserConsentData)("gdpr","uuid"),c=window._sp_&&window._sp_.config.accountId,s=Object(n.sampleRate)(),f=Object(n.sampleUser)();Object(n.fetch)("".concat(t,"/consent/v3/").concat(r,"/reject-all"),{headers:{"Content-Type":"application/json"},method:"POST",params:{accountId:c,authId:u,consentUUID:a,includeCustomVendorsRes:1,sampleRate:s,sendPVData:f,withSiteActions:!0}}).then((function(t){return JSON.parse(t)})).then((function(t){return Object(n.handleConsentData)(t,"gdpr",o).then((function(e){return t}))})).then((function(t){return i(),t})).then((function(t){try{e(null,!0)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t))}})).catch((function(t){try{e(null,!1)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t))}Object(n.handleError)(t)}))},p=function(t){return Object(n.fetch)("".concat(t,"/consent/v2/delete-consent-cookies"),{method:"GET"}).then(JSON.parse).then((function(t){var e=t.actions,r=t.cookies;return Promise.all(e.map(n.executeAction)).then((function(t){return Object(n.setCookiesAction)(r,"","gdpr")}))}))}},200:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(197);function o(t,e,r,o){return{getCustomVendorConsents:function(t,e){Object(n.c)(e,t)},postCustomConsent:function(o,i,u,a){Object(n.e)(t,i,u,a,o,r,e)},postRejectAll:function(i){Object(n.f)(t,i,r,e,o)},getVendorPurposeMapping:function(e){Object(n.d)(t,r,e)}}}},202:function(t,e,r){r(1)({target:"String",proto:!0},{repeat:r(204)})},203:function(t,e,r){var n=r(6),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},204:function(t,e,r){"use strict";var n=r(38),o=r(16);t.exports=function(t){var e=String(o(this)),r="",i=n(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(r+=e);return r}}}]);